<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/10/27 0027
 * Time: 15:49
 */

namespace app\api\model\VideoUser;


use app\api\model\Index\VideoUser;
use app\api\model\User\UserModel;
use think\Model;
use think\facade\Db;

class VideoUserModel extends Model
{

    /**
     * 表名常量
     */
    const Table = 'video_user';

    /**
     * 数据表名
     * @var string
     */
    protected $name = 'video_user';

    /**
     * 用户
     */
    public function user()
    {
        return $this->hasOne(UserModel::class, 'id', 'user_id');
    }

}
